<template>
  <div class="config-box">
    <div class="config-title">
      商城标题
    </div>
    <div class="config-content">
      <el-form ref="form" label-width="80px">
        <el-form-item label="商城标题">
          <el-input size="mini" placeholder="请输入商城标题" v-model="mallTitle"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="el-icon-circle-check" size="mini" @click="onSubmit">确定</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default  {
  name: 'mallHeaderConf',
  props: {metadata: Object},
  data() {
    return {
      mallTitle: this.metadata.title
    }
  },
  methods: {
    onSubmit() {
      this.$emit('ok',this.mallTitle)
    }
  }
}
</script>

<style scoped>
.config-box {
  width: 380px;
  min-height: 200px;
  margin: 0 auto;
}
.config-title {
  width: 380px;
}

.config-content {
  margin-top: 12px;
}
</style>
